<#import '/ftlLibrary/properteisVariable.ftl' as pv/>
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <form class="editForm" action="${saveUrl}" method="post" responseType="JSON" role="form"
              id="editForm_${serializeNum}"
              data-bv-submitButtons="#editFormSubmitBtn_${serializeNum}"
              data-bv-message="This value is not valid"
              data-bv-feedbackicons-valid="glyphicon glyphicon-ok"
              data-bv-feedbackicons-invalid="glyphicon glyphicon-remove"
              data-bv-feedbackicons-validating="glyphicon glyphicon-refresh">
            <input type="hidden" name="id" value="${editEntity.id}">
            <#if (true && editModel=='add')||(true && editModel=='edit')>
                <div class="col-xm-12 col-sm-6 col-lg-12 margin-top-30">
                    <div class="form-group">
                        <label for="classHour"
                               class="col-sm-2 col-sm-offset-1 control-label no-padding-right">退课时数：</label>
                        <label class="col-sm-8">
                            <label>
                                <input data-bv-integer-message="The field is number"
                                       data-bv-message="The field is not valid" data-bv-integer="true" size="11"
                                       name="classHour" alt="退课时数" id="classHour" placeholder="退课时数" type="text"
                                       title="退课时数" class="form-control" value="${editEntity.classHour}"/>
                            </label>
                            <label style="margin-left: 20px">
                                *可退课数20课时（不含赠课）
                            </label>
                            <label style="margin-left: 20px">
                                <input type="checkbox" style="position: static;opacity: 1;margin: 0;width: 12px;height: 12px;margin: 3px 0;">
                                已选课未消耗课程退费
                            </label>
                        </label>
                    </div>
                </div>
            </#if>


            <#if (true && editModel=='add')||(true && editModel=='edit')>
                <div class="col-xm-12 col-sm-6 col-lg-12">
                    <div class="form-group">
                        <label for="amout"
                               class="col-sm-2 col-sm-offset-1  control-label no-padding-right">退费金额：</label>
                        <div class="col-sm-3">
                            <input data-bv-numeric="true" data-bv-message="The field is not valid"
                                   data-bv-numeric-message="The field is numeric" size="22" name="amout" alt="退费金额"
                                   id="amout" placeholder="退费金额" type="text" title="退费金额" class="form-control"
                                   value="${editEntity.amout}"/>
                            <span class="text"></span>
                        </div>
                    </div>
                </div>
            </#if>
            <#if (true && editModel=='add')||(true && editModel=='edit')>
                <div class="col-xm-12 col-sm-6 col-lg-12">
                    <div class="form-group">
                        <label for="remark"
                               class="col-sm-2 col-sm-offset-1  control-label no-padding-right">退费备注：</label>
                        <div class="col-sm-6">
							 <textarea class="form-control" name="remark" size="500" rows="2" style="resize:none"
                                       id="remark" data-bv-field="remark" value="${editEntity.remark}"></textarea>
                        </div>
                    </div>
                </div>
            </#if>


            <div class="col-sm-12 text-align-center margin-top-20">
                <button style="width: 80px;margin-right: 20px" type="submit" class="btn btn-blue" id="editFormSubmitBtn_${serializeNum}">确定</button>
                <input style="width: 80px;" type="button" class="btn btn-default" data-dismiss="modal" value="取消"/>

            </div>
        </form>
    </div>
</div>
<script src="assets/js/validation/bootstrapValidator_init.js"></script>
<script>
    $(".selectpicker_${serializeNum}").select2();
</script>